Truncating Strings
This section describes two Text Utilities functions that you can use to truncate portions of strings. Each of these function can truncate characters from different locations in a string, and each makes use of the current script and font to perform its operation. The current script is defined on page 5-4. The current font is the font that is currently in use in the current graphics port.
- The
TruncString
function ensures that a Pascal string fits into the specified pixel width, by truncating the string as necessary.- The
TruncText
function ensures that a text string fits into the specified pixel width, by truncating the string as necessary.
Subtopics
- TruncString
- TruncText